package com.kws.merchant.domain.vo;

import com.kws.common.core.utils.StringUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author :yxy
 * @date : 2024/12/5
 */
@Data
@ApiModel
public class MerchantStatisticVo {
    @ApiModelProperty("大标题")
    private String title;
    @ApiModelProperty("大标题值")
    private Double value;
    @ApiModelProperty("昨天标题")
    private String yesterdayTitle;
    @ApiModelProperty("昨天标题值")
    private Double yesterdayValue;
    @ApiModelProperty("今天标题")
    private String todayTitle;
    @ApiModelProperty("今天标题值")
    private Double todayValue;


    public String getYesterdayTitle() {
        if (StringUtils.isEmpty(yesterdayTitle)){
            yesterdayTitle="昨日";
        }
        return yesterdayTitle;
    }

    public void setYesterdayTitle(String yesterdayTitle) {
        this.yesterdayTitle = yesterdayTitle;
    }

    public String getTodayTitle() {
        if (StringUtils.isEmpty(todayTitle)){
            todayTitle="今日";
        }
        return todayTitle;
    }

    public void setTodayTitle(String todayTitle) {

        this.todayTitle = todayTitle;
    }
}
